package com.shujia.day06;

public class Demo02InterfaceReturnOperator {
    public static void main(String[] args) {

        /*
            B bInterface 称为形参
            new F() 称为实际参数
         */

        B bInterface = createBInterface();
        bInterface.function2("B");

        // 该编写代码的方式称为链式编程
        new Demo02InterfaceReturnOperator().createBInterface2().function2("B");

    }

    public static B createBInterface(){
        return new F();
    }

    public B createBInterface2(){
        return new F();
    }

}
